package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.AttendPayMethodExample.E_ATTEND_PLAN_ID;
import static org.jsola.hr.example.AttendPayMethodExample.E_COMPANY_ID;
import static org.jsola.hr.example.AttendPayMethodExample.E_DAYS;
import static org.jsola.hr.example.AttendPayMethodExample.E_HOURS;
import static org.jsola.hr.example.AttendPayMethodExample.E_PAY_METHOD;
import static org.jsola.hr.example.AttendPayMethodExample.E_SPECIFIC_WAY;
import static org.jsola.hr.example.AttendPayMethodExample.M_ATTEND_PLAN_ID_MAX;
import static org.jsola.hr.example.AttendPayMethodExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.AttendPayMethodExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.AttendPayMethodExample.N_ATTEND_PLAN_ID;
import static org.jsola.hr.example.AttendPayMethodExample.N_COMPANY_ID;
import static org.jsola.hr.example.AttendPayMethodExample.N_DAYS;
import static org.jsola.hr.example.AttendPayMethodExample.N_HOURS;
import static org.jsola.hr.example.AttendPayMethodExample.N_PAY_METHOD;
import static org.jsola.hr.example.AttendPayMethodExample.N_SPECIFIC_WAY;

/**
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【计薪方式】的参数")
@Data
public class AttendPayMethodUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_ATTEND_PLAN_ID, example = E_ATTEND_PLAN_ID)
    @Length(max = 32, message = M_ATTEND_PLAN_ID_MAX)
    private String attendPlanId;

    @ApiModelProperty(notes = N_PAY_METHOD, example = E_PAY_METHOD)
    private Integer payMethod;

    @ApiModelProperty(notes = N_SPECIFIC_WAY, example = E_SPECIFIC_WAY)
    private Integer specificWay;

    @ApiModelProperty(notes = N_HOURS, example = E_HOURS)
    private Integer hours;

    @ApiModelProperty(notes = N_DAYS, example = E_DAYS)
    private Integer days;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;


}

